package generics;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 杨宇
 * @version 1.0 2016/11/14
 */
public class ListOfInt {

    public static void main(String[] args) {
        List<Integer> li = new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            li.add(i);
        }
        for (int i : li) {
            System.out.print(i+" ");
        }
    }
}
